import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css' //黑暗主题
import './styles/dark/css-vars.css'
import SvgIcon from '@/components/SvgIcon'// svg component
// 自动导入 src/assets/icons 文件夹下的所有 svg 文件
import '@/assets/icons'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App);
// 监听路由变化，保存当前路径
app.component('svg-icon', SvgIcon)
app.use(store).use(ElementPlus,{ locale : zhCn,}).use(router).mount('#app')
